package com.xiangmo.travel.Service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiangmo.travel.Dto.CommunityCommentsDto;
import com.xiangmo.travel.Dto.PageInfoDto;
import com.xiangmo.travel.Dvo.CommunityCommentsDvo;
import com.xiangmo.travel.Entity.CommunityComments;


public interface CommunityCommentsService {
    //添加评论
    int addComment(CommunityCommentsDto communityCommentsDto);
    //根据论坛帖子id 查询父评论
    PageInfoDto<CommunityCommentsDvo> getCommentByCommunityId(Long id, int pageNum, int pageSize);
    //登录后 根据论坛帖子id 查询父评论
    PageInfoDto<CommunityCommentsDvo> getCommentByCommunityIdAndUserId(Long userId, Long id, int pageNum, int pageSize);
    //删除评论
    int deleteCommentById(Long id);
    //回复评论 子
    int addChildComment(CommunityCommentsDto communityCommentsDto);
    //根据论坛帖子id 查询子评论
    PageInfoDto<CommunityCommentsDvo> getChildCommentByCommunityId(Long id, int pageNum, int pageSize);
    //登录后 根据论坛帖子id 查询子评论
    PageInfoDto<CommunityCommentsDvo> getChildCommentByCommunityIdAndUserId(Long userId, Long id, int pageNum, int pageSize);
}
